package app;
import com.StarMicronics.StarIOSDK.R;

import android.view.*;
import android.view.View.OnClickListener;
import android.widget.*;



public class DetailInformation {
	
	public DetailInformation(String info) {
		loadXml();
		text.setText(info);
	}
	
	private void cancel() {
		AppDelegate.sharedInstance().layout.removeView(view);
	}
	
	
	private EditText text;
	private View view;
	private void loadXml() {
        view = AppDelegate.sharedInstance().activity.getLayoutInflater().inflate(R.layout.detail_information, null);
        text = (EditText)view.findViewById(R.id.text);
        
        view.setOnClickListener(new OnClickListener() {
			public void onClick(View v) {
				cancel();
			}
		});
		AppDelegate.sharedInstance().layout.addView(view);
	}

}
